def show_message(messages):
    for message in messages:
        print(message)


def sendMessage(messages, new_messages):
    while messages:
        new_messages.append(messages.pop())


messages = ['1', '2', '3']
show_message(messages)

new_message = []
sendMessage(messages, new_message)
print(messages, new_message)

messages = ['1', '2', '3']
new_message = []
sendMessage(messages[:], new_message)
print(messages, new_message)
